package service;

import entity.ResponseMessage;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@CrossOrigin
public interface ZStockService {
    /**
     * 查询库存
     * 模糊查询商品名字 pname
     * 库名
     * @param pname
     * @param type
     * @return
     */
    @RequestMapping("/stock/getFyStock")
    @ResponseBody
    public ResponseMessage getFyStock(@RequestParam(value = "pname",required = false) String pname,@RequestParam(value = "type",required = false) Integer type,@RequestParam(value = "pageNo") int pageNo, int pageSize);

}
